package com.yhq.basic.jvm.dataarea;

/**
 * 老年代空间分配担保机制
 * 测试不了了，-XX:-HandlePromotionFailure jdk8弃用了该参数
 * @author hqyin
 * @date 2024/8/8 2:21 PM
 */
public class Demo8OldGuarantee {
    public static void main(String[] args) {
        byte[] allocation1 = new byte[1*1024*1024];
        byte[] allocation2 = new byte[1*1024*1024];
    }


}
